﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<RoleDetailsViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Role:
        <%= Model.RoleName %></h2>
    <h3>
        Users in the role:</h3>
    <ul>
        <% foreach (string userName in Model.UserNames)
           { %>
        <li>
            <%= Html.ActionLink(
                    userName,
                    "Details",
                    new { controller = "User", userName = userName} ) %>
        </li>
        <%} %>
    </ul>
</asp:Content>
